package cn.itcast.nems.studentrecord.web.vo.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class StudentRecordDiscountsVO  implements Serializable {
    private String id ;
    /**
     * 短训升班凭单ID
     */
    private String journalRenewalId;
    /**
     * 短训升班凭单行ID;不管是针对整个凭单的优惠还是针对学生的优惠，此处都应关联凭单行。
     */
    private String journalRenewalLineId ;
    /**
     * ems 优惠ID
     */
    private String discountId ;
    /**
     * 优惠名称
     */
    private String discountName ;
    /**
     * 优惠金额
     */
    private BigDecimal discountAmount ;
    /**
     * 优惠折扣
     */
    private BigDecimal discountRate ;
    /**
     * 优惠比例
     */
    private String discountType ;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createdDatetime ;
    private String createdBy ;
}
